/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bugman.business;

import com.bugman.entity.Project;
import com.bugman.entity.User;
import com.bugman.exceptions.ProjectAlreadyExistException;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Flashman
 */
@Local
public interface ProjectService {

    public void createProject(Project project) throws ProjectAlreadyExistException;
    public void updateProject(Project project);
    public void deleteProject(Project project);
    public List<Project> getAllProjects();
    public List<Project> getOwnedProjects(User developer, boolean owned);
    public boolean projectExist(String projectName);
    public Project getProject(Integer projectId);
    public List<Project> getMostActiveProjects(Integer count);    
}
